package org.jeecg.modules.demo.spcWeeklyPlan.service.impl;

import org.jeecg.modules.demo.spcWeeklyPlan.entity.SpcWeeklyPlanDetail;
import org.jeecg.modules.demo.spcWeeklyPlan.mapper.SpcWeeklyPlanDetailMapper;
import org.jeecg.modules.demo.spcWeeklyPlan.service.ISpcWeeklyPlanDetailService;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;

/**
 * @Description: 周计划明细
 * @Author: jeecg-boot
 * @Date:   2023-10-23
 * @Version: V1.0
 */
@Service
public class SpcWeeklyPlanDetailServiceImpl extends ServiceImpl<SpcWeeklyPlanDetailMapper, SpcWeeklyPlanDetail> implements ISpcWeeklyPlanDetailService {

	@Resource
	private SpcWeeklyPlanDetailMapper spcWeeklyPlanDetailMapper;

	@Override
	public List<SpcWeeklyPlanDetail> selectByMainId(String mainId) {
		return spcWeeklyPlanDetailMapper.selectByMainId(mainId);
	}

	@Override
	public String getMaxCode() {
		return spcWeeklyPlanDetailMapper.getMaxCode();
	}

	@Override
	public List<SpcWeeklyPlanDetail> getByHetCode(String hetid) {
		return spcWeeklyPlanDetailMapper.getSpcWeeklyPlanDetailByHetbh(hetid);
	}

	@Override
	public String getWeekQuality(String beginTime, String endTime, String dept) {
		return baseMapper.getWeekQuality(beginTime, endTime, dept);
	}


}
